import 'package:dailoz/generated/json/base/json_convert_content.dart';
import 'package:dailoz/entity/tag_entity.dart';

TagEntity $TagEntityFromJson(Map<String, dynamic> json) {
  final TagEntity tagEntity = TagEntity();
  final String? tagContent = jsonConvert.convert<String>(json['tagContent']);
  if (tagContent != null) {
    tagEntity.tagContent = tagContent;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    tagEntity.id = id;
  }
  final int? total = jsonConvert.convert<int>(json['total']);
  if (total != null) {
    tagEntity.total = total;
  }
  return tagEntity;
}

Map<String, dynamic> $TagEntityToJson(TagEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['tagContent'] = entity.tagContent;
  data['id'] = entity.id;
  data['total'] = entity.total;
  return data;
}
